package com.briup.corejava.day15;

/**
 * finally的特点
 */
public class Test3 {
    public static void main(String[] args) {
        System.out.println(test());
    }
    public static int test(){
        int a = 10;
        try{
            a = 20;
            return a;
        }finally {
            a = 30;
            System.out.println(a);
        }
    }
}
